package com.cbt.cbtBlog.vo;

import com.cbt.cbtBlog.enums.ResultEnum;

public class LayuiVO {
   private Integer code = 0;
   private String msg = "";
   private Object data;
   private Integer count = 0;

   public String toString() {
      return "LayuiVO [code=" + this.code + ", msg=" + this.msg + ", data=" + this.data + ", count=" + this.count + "]";
   }

   public LayuiVO() {
   }

   public LayuiVO(ResultEnum enums) {
      this.code = enums.getCode();
      this.msg = enums.getMsg();
   }

   public LayuiVO(Integer code, String msg) {
      this.code = code;
      this.msg = msg;
   }

   public LayuiVO(Object data) {
      this.data = data;
   }

   public LayuiVO(Object data, Integer count) {
      this.data = data;
      this.count = count;
   }

   public Integer getCode() {
      return this.code;
   }

   public void setCode(Integer code) {
      this.code = code;
   }

   public String getMsg() {
      return this.msg;
   }

   public void setMsg(String msg) {
      this.msg = msg;
   }

   public Object getData() {
      return this.data;
   }

   public void setData(Object data) {
      this.data = data;
   }

   public Integer getCount() {
      return this.count;
   }

   public void setCount(Integer count) {
      this.count = count;
   }

}
